<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base th:href="${#servletContext.getContextPath()+'/'}">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css"
          integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"
            integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
            crossorigin="anonymous"></script>
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <form method="post" action="emp/update">
                <table th:each="emp:${oneEmp}">
                    <tr>
                        <td>
                            <div class="form-group">
                                <label for="username">username</label>
                                <input type="hidden" name="eno" th:value="${emp.eno}">
                                <input class="form-control" id="username" type="text" name="ename"
                                       th:value="${emp.ename}">
                            </div>
                            <!--                            <input type="hidden" name="eno" th:value="${emp.eno}">-->
                            <!--                            <input type="text" name="ename" th:value="${emp.ename}">-->
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label for="username">salary</label>
                                <input class="form-control" id="salary" type="text" name="salary"
                                       th:value="${emp.salary}">
                            </div>
                            <!--                            <input type="text" name="salary" th:value="${emp.salary}">-->
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label for="dno">salary</label>
                                <input class="form-control" id="dno" type="text" name="dno" th:value="${emp.dno}">
                            </div>
                            <!--                            <input type="text" name="dno" th:value="${emp.dno}">-->
                        </td>
                    </tr>

                    <tr>
                        <!--                        <td>dname</td>-->
                        <td>
                            <div class="form-group">
                                <label for="dname">dname</label>
                                <select class="form-center" id="dname">
                                    <option th:each="dept:${deptList}" th:text="${dept.dno+'--'+dept.dname}"/>
                                </select>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label for="pwd">pwd</label>
                                <input class="form-control" id="pwd" type="text" name="pwd" th:value="${emp.pwd}">
                            </div>
                            <!--                            <input type="password" name="pwd" th:value="${emp.pwd}">-->
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <label for="esex">员工性别</label>
                            <div class="form-group">
                                <input type="radio" class="form-control" id="esex" name="esex" value="男"/>男
                                <input type="radio" class="form-control" id="esex" name="esex" value="女" checked/>⼥
                            </div>
<!--                            <div class="form-group">-->
<!--                                <label for="esex">esex</label>-->
<!--                                <input class="form-control" id="esex" type="text" name="esex" th:value="${emp.esex}">-->
<!--                            </div>-->
                            <!--                            <input type="text" name="esex" th:value="${emp.esex}">-->
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label for="bornDate">bornDate</label>
                                <input class="form-control" id="bornDate" type="date" name="bornDate"
                                       th:value="${emp.esex}">
                            </div>
                            <!--                            <input type="date" name="bornDate" th:value="${emp.bornDate}">-->
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <input class="btn btn-default" type="submit" value="提交">
                            </div>
                            <!--                            <input type="submit" value="提交">-->
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>

</body>
</html>